package com.ruoyi.device.domain;

import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 设备管理对象 device
 * 
 * @author ruoyi
 * @date 2024-09-03
 */
public class Device extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    /** 设备编号 */
    @Excel(name = "设备编号")
    private String deviceNo;

    /** 设备状态（1：待绑定，2：已绑定，3：维修，4：报废） */
    @Excel(name = "设备状态", readConverterExp = "1=待绑定,2=已绑定,3=维修,4=报废")
    private String situation;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String name;

    /** 设备类型（1：手环，2：面诊仪.......） */
    @Excel(name = "设备类型", readConverterExp = "1=手环,2=面诊仪")
    private String type;

    /** 部门id */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @Excel(name = "部门id")
    private Long deptId;

    /** 绑定用户id */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @Excel(name = "绑定用户id")
    private Long customerId;

    /** 绑定用户名称 */
    @Excel(name = "绑定用户名称")
    private String customerName;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 设备归属（1：客户  2：门店） */
    @Excel(name = "设备归属", readConverterExp = "1=客户,2=门店")
    private String ownershipFlag;

    /** 设备二维码 */
    @Excel(name = "设备二维码")
    private String qrCode;

    /** 设备账号信息信息 */
    private List<DeviceAccount> deviceAccountList;


    /**
     * 未绑定该用户的设备
     */
    private Long notCustomerId;

    public Long getNotCustomerId() {
        return notCustomerId;
    }

    public void setNotCustomerId(Long notCustomerId) {
        this.notCustomerId = notCustomerId;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDeviceNo(String deviceNo) 
    {
        this.deviceNo = deviceNo;
    }

    public String getDeviceNo() 
    {
        return deviceNo;
    }
    public void setSituation(String situation) 
    {
        this.situation = situation;
    }

    public String getSituation() 
    {
        return situation;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setCustomerId(Long customerId) 
    {
        this.customerId = customerId;
    }

    public Long getCustomerId() 
    {
        return customerId;
    }
    public void setCustomerName(String customerName) 
    {
        this.customerName = customerName;
    }

    public String getCustomerName() 
    {
        return customerName;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setOwnershipFlag(String ownershipFlag) 
    {
        this.ownershipFlag = ownershipFlag;
    }

    public String getOwnershipFlag() 
    {
        return ownershipFlag;
    }
    public void setQrCode(String qrCode) 
    {
        this.qrCode = qrCode;
    }

    public String getQrCode() 
    {
        return qrCode;
    }

    public List<DeviceAccount> getDeviceAccountList()
    {
        return deviceAccountList;
    }

    public void setDeviceAccountList(List<DeviceAccount> deviceAccountList)
    {
        this.deviceAccountList = deviceAccountList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deviceNo", getDeviceNo())
            .append("situation", getSituation())
            .append("name", getName())
            .append("type", getType())
            .append("deptId", getDeptId())
            .append("remark", getRemark())
            .append("customerId", getCustomerId())
            .append("customerName", getCustomerName())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("ownershipFlag", getOwnershipFlag())
            .append("qrCode", getQrCode())
            .append("deviceAccountList", getDeviceAccountList())
            .toString();
    }
}
